package com.bnz.page.controller;

import com.bnz.page.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/page")
public class PageController {
    @Autowired
    private PageService pageService;

    /**
     * 根据Id生成 静态页面。
     * @param id
     */
    @RequestMapping("/createHtml")
    private void createHtml( long id) throws IOException {
        pageService.createHtml(id);

    }
}
